package com.wujunshen.mongodb.properties;

import lombok.Data;

@Data
public class MongoGroup {
    private String mongoBeanName = "mongoTemplate";
    private String gridFsBeanName = "gridFsTemplate";

    private String mongoTemplateName;
    private String gridFsTemplateName;
    //存储时是否保存_class
    private boolean showClass = true;
    private String host;
    private Integer port = 27017;
    private String database;

    private int minConnectionsPerHost;
    private int maxConnectionsPerHost = 100;
    private int threadsAllowedToBlockForConnectionMultiplier = 5;
    private int serverSelectionTimeout = 1000 * 30;
    private int maxWaitTime = 1000 * 60 * 2;
    private int maxConnectionIdleTime;
    private int maxConnectionLifeTime;
    private int connectTimeout = 1000 * 10;
    private int socketTimeout = 0;
    private boolean socketKeepAlive = false;
    private boolean sslEnabled = false;
    private boolean sslInvalidHostNameAllowed = false;
    private boolean alwaysUseMBeans = false;
    private int heartbeatFrequency = 10000;
    private int minHeartbeatFrequency = 500;
    private int heartbeatConnectTimeout = 20000;
    private int heartbeatSocketTimeout = 20000;
    private int localThreshold = 15;
}